{% extends 'base.html' %}
{% block style %}
    <link rel="stylesheet" href="../static/layui/css/layui.css"/>

    <style>
        /*表格*/
        .table {
            width: 100%;
            margin: 0 auto;
            padding-top: 40px;
        }

        .table tr {
            height: 40px;
            align-items: center;
            font-size: 14px;
            font-family: Microsoft YaHei;
            line-height: 40px;
        }

        .table tr td {
            padding: 0 !important;
        }

        .layui-table-tool {
            font-size: 16px;
            font-family: Microsoft YaHei;
        }
        .layui-table,.layui-table-header{
            background: none!important;
        }

        /*用户信息表单*/
        #userInfo {
            width: 90%;
            margin: 0 auto;
            margin-top: 40px;
        }

        #userInfo .layui-form-item {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

        #userInfo .layui-form-label {
            display: inline-block;
            padding-left: 0;
            padding-right: 0;
            text-align: left;
            width: 40%;
        }

        #userInfo .layui-input-block {
            display: inline-block;
            margin-left: 0;
            width: 75%;
        }

        #userInfo .btn {
            width: 100%;
        }

        #userInfo .btn .layui-input-block {
            width: 100%;
            margin: 0;
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

        #userInfo .btn .layui-input-block .layui-btn {
            background-color: #1E9FFF;
        }

        {#下拉列表#}
        dd.layui-this {
            background-color: #1E9FFF !important;

        }

        {#头部工具#}
        .layui-table-tool {
            width: 100%;
            display: flex;
            flex-direction: row;
            background:none;
        }

        .layui-table-tool .layui-table-tool-temp {
            width: 100%;
            padding-right: 0;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

        {#行内工具#}
        #operateBtn {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            width: 90%;
            margin: 0 auto;
            height: 100%;
        }

        #operateBtn a:hover {
            color: #2671EE;
        }

        #operateBtn div {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
        }

        #operateBtn div img {
            width: 20px;
            height: 20px;
            margin-right: 5px;
        }

        #operateBtn div li {
            width: 20px;
            height: 20px;
            margin-right: 5px;
            color: #2671EE;
        }

        .layui-icon-set-sm:before {
            content: "\e620";
            text-align: center;
            position: absolute;
            display: block;
            top: 50%;
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            transform: translateY(-50%);
        }

        #operateBtn div .text {
            font-size: 14px;
            font-weight: 400;
            color: #009688;
            background: none;
            padding-right: 0;
        !important;
            padding-left: 0;
        !important;
        }

        {#赋权表单#}
        #userCount {
            display: flex;
            width: 220px;
            height: 150px;
            flex-direction: column;
            justify-content: space-around;
            align-content: center;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%); /*自己的50% */

        }

        #userCount div {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-content: center;
        }

        #userCount div:nth-child(2) {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-content: center;
        }

        #userCount .userCountValue {
            height: 36px;
            width: 80px;
            font-size: 16px;
            line-height: 36px;
            font-family: Microsoft YaHei;
            color: #666;
            text-align: center;
        }

        #userCount .userCountBtn {
            height: 40px;
            width: 50px;
            border-color: #1E9FFF;
            background-color: #1E9FFF;
            font-size: 25px;
            line-height: 40px;
            font-family: Microsoft YaHei;
            color: #FFFFFF;
            padding: 0;
        }

        #userCount #ok {
            font-size: 14px;
            border-radius: 2px;
            border-color: #1E9FFF;
            background-color: #1E9FFF
        }

        #userCount #cancel {
            font-size: 14px;
            border-radius: 2px;
            border-color: #1E9FFF;
            background-color: #1E9FFF
        }

        {#删除用户#}
        .layui-layer-btn {
            text-align: center !important;
        }
        .layui-table-fixed{
            display: none;
        }

        #table-3 thead, #table-3 tr {
        border-top-width: 1px;
        border-top-style: solid;
        border-top-color: rgb(211, 202, 221);
        font-size: 20px;
        font-weight: bold;
        }
        #table-3 {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: rgb(211, 202, 221);
        }

        /* Padding and font style */
        #table-3 td, #table-3 th {
        padding: 5px 10px;
        font-size: 14px;
        font-family: Verdana;
        color: rgb(95, 74, 121);
        }

        /* Alternating background colors */
        #table-3 tr:nth-child(even) {
        background: yellow
        }
        #table-3 tr:nth-child(odd) {
        background: #FFF
        }


        th{
         background: #eee;font-size: 33px;line-height: 100px;color:white;border: 1px solid black
        }

        p{
        padding: 5px 10px;
        font-size: 32px;
        font-family: Verdana;
        color: rgb(95, 74, 121);

        }
    </style>

{% endblock %}

{% block content %}
    <div class="children-body" style="background-color: #ccc !important;margin: 40px;height: 80%">
        <div class="table">
           <p class="text-lowercase">检测数量统计</p>
        <div class="table">
            <table id="table-3" style="width: 80%;height: 300px;text-align: center;">
                  <thead>
                    <tr>
                      <th>日期</th>
                      <th>检测数量</th>
                       <th>阳性数量</th>
                    </tr>
                  </thead>
                  <tbody>
                    {% for aaa in results_obj_time %} 
                    <tr>
                      <td>{{aaa.hesuan_result_uptime}}</td>
                      <td>{{ aaa.count }}</td>
                      <td>
                            {% for yx in results_obj_time_yangxing %} 
                                {% if aaa.hesuan_result_uptime == yx.hesuan_result_uptime %} 
                                 <font color="red"> {{yx.count}}</font>
                                {% else %}
                                {% endif %}
                            {% endfor %}
                      </td>
                    </tr>
                    {% endfor %}
                  </tbody>
                </table>
            </div>

                <p></p>
                  <p class="text-lowercase">结果统计</p>
                <div class="table">
            <table id="table-3" style="width: 80%;height: 300px;text-align: center;">
                  <thead>
                    <tr>
                      <th>结果</th>
                      <th>数量</th>
                    </tr>
                  </thead>
                  <tbody>
                    {% for aa in results_obj_result %} 
                    <tr>
                      <td> {% if aa.hesuan_result == 2 %} 阳性  {% else %}阴性{% endif %}</td>
                      <td>{{ aa.count }}</td>
                    </tr>
                    {% endfor %}
                  </tbody>
                </table>
            </div>

        </div>
    </div>
    <!--新增用户表单-->
    

{% endblock %}
{% block script %}
    <script type="text/html" id="toolbar">
        <div id="">
          
        </div>
    </script>
{% endblock %}